<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>身份证号记录管理</title>
	<meta name="decorator" content="default"/>
	<script src="${ctxStatic}/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/jiujiu/jiuIdNumberLog/">身份证号记录列表</a></li>
		<a class="btn btn-danger" href="${ctx}/jiujiu/jiuIdNumberLog/clear">清空数据</a>
		<shiro:hasPermission name="jiujiu:jiuIdNumberLog:edit"><li><a href="${ctx}/jiujiu/jiuIdNumberLog/form">身份证号记录添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="jiuIdNumberLog" action="${ctx}/jiujiu/jiuIdNumberLog/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<label>名称 ：</label><form:input path="name" htmlEscape="false" maxlength="50" class="input-medium"/>
		
		<label>下单时间 ：</label>
			<input id="startTime" name="startTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${jiuIdNumberLog.startTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/> -至-
					
			<input id="endTime" name="endTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${jiuIdNumberLog.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/> 
					
		&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
	</form:form>
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered ">
		<thead><tr>
		<th>姓名</th>
		<th>身份证号</th>
		<th>微信名</th>
		<th>时间</th>
		<shiro:hasPermission name="jiujiu:jiuIdNumberLog:edit"><th>操作</th></shiro:hasPermission></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="jiuIdNumberLog">
			<tr>
				<td>${jiuIdNumberLog.name}</td>
				<td>${jiuIdNumberLog.idNumber}</td>
				<td>${jiuIdNumberLog.memberName}</td>
				<td><fmt:formatDate value="${jiuIdNumberLog.createTime}" type="both" pattern="yyyy-MM-dd HH:mm:ss" /></td>
				<shiro:hasPermission name="jiujiu:jiuIdNumberLog:edit"><td>
    				<a class="btn btn-success" href="${ctx}/jiujiu/jiuIdNumberLog/form?id=${jiuIdNumberLog.id}">修改</a>
					<a class="btn btn-danger" href="${ctx}/jiujiu/jiuIdNumberLog/delete?id=${jiuIdNumberLog.id}" onclick="return confirmx('确认要删除该身份证号记录吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>
